package cn.wj.school.cloud.dubbo;

import cn.wj.school.cloud.dto.Response;
import cn.wj.school.cloud.dto.SyUserDTO;
import cn.wj.school.cloud.enums.OperateType;

/**
 * @Author: yueding
 * @Description: 教师端需要连接的客户端
 * @Date: Created in 10:19 2019/1/14
 * @Modified By: yueding
 * Copyright(c) cai-inc.com
 */
public interface JteachDubboService {

    /**
     * 登录
     * @param account
     * @param password
     * @return
     */
    Response<SyUserDTO> userLogin(String account, String password);

    /**
     * 登出
     * @param account
     * @return
     */
    Response<Boolean> userLoginOut(String account);

    /**
     * 注册登录信息
     * @param userId 用户id
     * @param type 登录或者登出
     * @return
     */
    Response<Boolean> registerLoginInfo(Long userId, OperateType type);
}
